﻿using System;
using System.Collections.Generic;

namespace Domain.Models
{
    [Serializable]
    public class Subject
    {
        private readonly IList<Variant> variants;
        public long Id { get; private set; }
        public string Name { get; private set; }

        public Subject(string name)
        {
            variants = new List<Variant>();
            Name = name;
            Id = GetHashCode();
        }

        public void AddVariant(Variant variant)
        {
            variants.Add(variant);
        }

        public IList<Variant> GetVariants()
        {
            return variants;
        }
    }
}